// 永久存储
const $setStorage = (name: string, data: any) => {
  localStorage.setItem(name, data);
};
const $getStorage = (name: string) => {
  return localStorage.getItem(name);
};
const $removeItemStorage = (name: string) => {
  localStorage.removeItem(name);
};
// 绘画存储
const $setseSsionStorage = (name: string, data: any) => {
  sessionStorage.setItem(name, data);
};
const $getseSsionStorage = (name: string) => {
  return sessionStorage.getItem(name);
};
const $removeSessionStorage = (name: string) => {
  sessionStorage.removeItem(name);
};
export default {
  $setStorage,
  $getStorage,
  $removeItemStorage,
  $setseSsionStorage,
  $getseSsionStorage,
  $removeSessionStorage
};
